package com.eportal.ORM;

/**
 * WtBillTypeId entity. @author MyEclipse Persistence Tools
 */

public class WtBillType implements java.io.Serializable {

	// Fields

	private String billTrancde;
	private String billParity;
	private String billFlag;
	private String billName;

	// Constructors

	/** default constructor */
	public WtBillType() {
	}

	/** full constructor */
	public WtBillType(String billTrancde, String billParity, String billFlag,
			String billName) {
		this.billTrancde = billTrancde;
		this.billParity = billParity;
		this.billFlag = billFlag;
		this.billName = billName;
	}

	// Property accessors

	public String getBillTrancde() {
		return this.billTrancde;
	}

	public void setBillTrancde(String billTrancde) {
		this.billTrancde = billTrancde;
	}

	public String getBillParity() {
		return this.billParity;
	}

	public void setBillParity(String billParity) {
		this.billParity = billParity;
	}

	public String getBillFlag() {
		return this.billFlag;
	}

	public void setBillFlag(String billFlag) {
		this.billFlag = billFlag;
	}

	public String getBillName() {
		return this.billName;
	}

	public void setBillName(String billName) {
		this.billName = billName;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof WtBillType))
			return false;
		WtBillType castOther = (WtBillType) other;

		return ((this.getBillTrancde() == castOther.getBillTrancde()) || (this
				.getBillTrancde() != null
				&& castOther.getBillTrancde() != null && this.getBillTrancde()
				.equals(castOther.getBillTrancde())))
				&& ((this.getBillParity() == castOther.getBillParity()) || (this
						.getBillParity() != null
						&& castOther.getBillParity() != null && this
						.getBillParity().equals(castOther.getBillParity())))
				&& ((this.getBillFlag() == castOther.getBillFlag()) || (this
						.getBillFlag() != null
						&& castOther.getBillFlag() != null && this
						.getBillFlag().equals(castOther.getBillFlag())))
				&& ((this.getBillName() == castOther.getBillName()) || (this
						.getBillName() != null
						&& castOther.getBillName() != null && this
						.getBillName().equals(castOther.getBillName())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getBillTrancde() == null ? 0 : this.getBillTrancde()
						.hashCode());
		result = 37
				* result
				+ (getBillParity() == null ? 0 : this.getBillParity()
						.hashCode());
		result = 37 * result
				+ (getBillFlag() == null ? 0 : this.getBillFlag().hashCode());
		result = 37 * result
				+ (getBillName() == null ? 0 : this.getBillName().hashCode());
		return result;
	}

}